package com.yonyou.cyxdms.sysAuth.service.mapper;

import com.yonyou.cyx.framework.dao.base.SuperMapper;
import com.yonyou.cyxdms.sysAuth.service.entity.SystemParamPO;
import com.yonyou.cyxdms.sysAuth.service.vo.rule.AdviceVO;
import com.yonyou.cyxdms.sysmanage.client.vo.advice.AdviceRuleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统参数表,存放经销商自定义参数，如技师、自定义类别 Mapper 接口
 * </p>
 *
 * @author quankk
 * @since 2019-07-05
 */
public interface SystemParamMapper extends SuperMapper<SystemParamPO> {

    /**
     * 通知规则查询
     *
     * @return:
     * @auther: 李贺
     * @since: 2019/9/16
     */
    List<AdviceVO> selectListByCode(@Param("paramCodes") List<String> paramCodes, @Param("companyId") Long companyId, @Param("paramType") Integer paramType);

    List<AdviceRuleVO> getAdviceRules(@Param("paramCode") String paramCode);

    String getParamValueByCode(@Param("paramCode") String paramCode, @Param("appId") String appId);

    List<Map<String, String>> findFactoryParam(@Param("companyId") Long companyId, @Param("paramCode") String paramCode);

    void insertInitParam(@Param("appId") String appId,
                     @Param("companyId") String companyId,
                     @Param("userId") String userId,
                     @Param("groupCompanyId") String groupCompanyId);
}
